<%@ Control Language="c#" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="Panel" Namespace="CommunityServer.ControlPanel.Controls" Assembly="CommunityServer.Web" %>
<%@ Register TagPrefix="CP" Namespace="CommunityServer.ControlPanel.Controls" Assembly="CommunityServer.Web" %>
<%@ Register TagPrefix="TWC" Namespace="Telligent.Web.UI" Assembly="Telligent.Web.UI" %>

<script runat="server">
	void Page_Load()
	{
		if(!Telligent.Registration.CommunityServer.IsStandard)
		{
			EulaHyperlink.NavigateUrl = "http://communityserver.org/r.ashx?1";
			EulaImage.ImageUrl = "~/utility/PoweredByCS_personal.GIF";
			EulaImage.AlternateText = "Community Server (Personal Edition)";
		}
		else
		{
			EulaHyperlink.NavigateUrl = "http://communityserver.org/r.ashx?j";
			EulaImage.ImageUrl = "~/utility/PoweredByCS_commercial.GIF";
			EulaImage.AlternateText = "Community Server (Commercial Edition)";
		}
	}
</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
	    <title>
			<CS:MPRegion id="PageTitleRegion" runat="server" ><CP:ResourceControl id = "HeaderTitle" runat="server" ResourceName="Admin_Title"/></CS:MPRegion>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<CS:Style id="UserStyles" runat="server" />
	    <CS:Style id="Style1" runat="server" Href="../style/Common.css" />
	    <CS:Style id="Style2" runat="server" Href="../style/controlpanel.css" />
 		<CS:SCRIPT id="Script2" runat="server" Src="utility/global.js" />
	    <CS:MPRegion id="StyleRegion" runat="server" ></CS:MPRegion>
    </head>
    <body>    
		<CS:MPForm runat="server" id="AdminForm">
			<TWC:Modal runat="server" CssClasses="CommonModal" TitleCssClasses="CommonModalTitle" CloseCssClasses="CommonModalClose" ContentCssClasses="CommonModalContent" FooterCssClasses="CommonModalFooter" ResizeCssClasses="CommonModalResize" MaskCssClasses="CommonModalMask" LoadingUrl="~/utility/loading.htm" />			
			<div id="CommonOuter"><div id="Common">
				<div class="CommonTitleBar">
					<div class="CommonTitleBarImage">
						<table cellpadding=0 cellspacing=0 border=0 width="100%">
							<tr>
								<td class="CommonTitleBarTitleArea" nowrap="true">
									<h1 class="CommonTitleBarTitle"><CS:MPRegion id="PanelTitle" runat="server" ><CP:ResourceControl id="Resourcecontrol2" runat="server" ResourceName="CP" /></CS:MPRegion></h1>
									<div class="CommonTitleBarDescription"><CS:MPRegion id="PanelDescription" runat="server"></CS:MPRegion></div>
								</td>
								<td class="CommonTitleBarSearchArea" nowrap="true">
									<div class="CommonUserArea">
										<CS:DisplayUserWelcome runat="server" id="Displayuserwelcome1"/>
									</div>
									<div class="CommonTitleBarSiteLink"><cs:Href runat="server" NavigateUrl="~/" CssClass="CommonTextButtonBig" ID="Href1"><CP:ResourceControl runat="server" ResourceName="CP_ReturnToSite" ID="Resourcecontrol1"/></cs:Href></div>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="CommonTabBar">
					<Panel:ControlPanelTabStrip runat = "Server"  UseDirectNavigation="true" id="PanelTabs" FileName="~/ControlPanel/Tabs.Config" />
				</div>

					<table width="100%" cellpadding="0" cellspacing="0" border="0" id="PanelContentContainer" >
						<tr valign="top">
							<td id="PanelNavigationColumn" rowspan="2">
								<CS:MPRegion id="PanelNavigation" runat="server"></CS:MPRegion>
							</td>
							<td width="100%">
								<div id="PanelWorkingObjectContainer">
									<CS:MPRegion id="TopLeft" runat="server" ></CS:MPRegion>
								</div>
							</td>
						</tr>
						<tr valign="top">
							<td width="100%">
								<table width="100%" cellpadding="0" cellspacing="0" border="0">
								<tr valign="top">
								<td width="100%"><table width="100%" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed;"><tr><td width="100%">
									<div class="CommonContentArea">
										<h2 class="CommonTitle"><CS:MPRegion id="DescriptionRegion" runat="server" ></CS:MPRegion></h2>
										<div class="CommonContent">
											<CS:MPRegion id="TaskRegion" runat="server" ></CS:MPRegion>
										</div>
									</div>
								</td></tr></table></td>
								<td id="CommonRightColumn">
									<CS:MPRegion id="RightColumnRegion" runat="server" />
								</td>
								</tr>
								</table>
							</td>
						</tr>
					</table>

				<div id="ControlPanelFooter">
					<table width="100%" cellpadding="0" cellspacing="0" border="0">
						<tr valign="middle">
						<td align="left">
							<asp:HyperLink Runat = "server" id="EulaHyperlink">
								<asp:Image Runat = "server" id="EulaImage" />
							</asp:HyperLink> 
						</td>
						<td align="right">
							<a href="http://communityserver.org/r.ashx?2"><asp:Image ImageUrl = "~/utility/images/telligent-cp.gif" Runat = "server" AlternateText = "Telligent" /></a> 
							<br />
							Copyright  <a href="http://communityserver.org/r.ashx?2">Telligent</a>, 2006. All rights reserved.
						</td>
					</table>
				</div>
			</div></div>
		</CS:MPForm>
    </body>
</html>

